Framework (
A-Z)
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
Name |
% (modulo) |
Examples |
int a = 20%100;
int b = 20%100;
int c = 75%100;
int d = 275%100;
|
Description |
Calculates the remainer when one number is divided by another. It is extremely useful for keeping numbers within a boundary such as keeping a shape on the screen. |
Syntax |
value1%value2
|
Parameters |
|
Usage |
Application |
Related |
/ (divide)
|
Updated on July 07, 2011 11:08:41pm PDT